//所有的后台接口，做到后台接口统一管理

import request from "@/utils/request.js";
// 设备概览接口
export const $deviceCount = ()=>{
    return request.get("/device/count");
}

//传感器接口
export const $sensorCount = ()=>{
    return request.get("/sensor/count");
}

//设备数据
export const $sensorList =()=>{
    return request.get("/device/sensorList");
}

// 网关数据
export const $gatewayList = (params)=>{
    console.log(params);
    return request.get("/gateway/list",{ params });
}

// 设备群组数据
export const $groupList = (params)=>{
    console.log(params);
    return request.get("/group/list",{ params });
}

// 传感器数据
export const $nodeList =( params )=>{
    return request.get("/sensor/list",{ params });
}

// 子账号数据
export const $accountList = ()=>{
    return request.get("/account/list");
}

// 密钥数据
export const $securityList=()=>{
    return request.get("/security/list");
}

// 测量数据
export const $measurementList =()=>{
    return request.get("/measurement/list");
}

// 计费 -充值记录数据
export const $rechargeList =()=>{
    return request.get("/fee/rechargeList");
}

// 计费 -使用记录数据
export const $usageList =()=>{
    return request.get("/fee/usageList");
}